PGPSort is a utility that lets you sort your PGP public key rings alphabetically. Alternatively, you can sort the keys according to their key ID, size, or date of creation. BP 7.0 source code is included in the archive.
The command line syntax for PGPSort is:
PGPSORT +U [-R] [<keyring>] - tries to sort on last name in user ID
PGPSORT +K [-R] [<keyring>] - sorts on 8-digit key ID (PGP 2.6)
PGPSORT +K6 [-R] [<keyring>] - sorts on 6-digit key ID (PGP 2.3)
PGPSORT +S [-R] [<keyring>] - sorts on key size
PGPSORT +D [-R] [<keyring>] - sorts on date of creation
PGPSORT -R [<keyring>] - removes bad keys (no sorting)
Use '-' instead of '+' to sort in descending order
Use '-R' to remove bad keys
If you only specify the '+u' option, PGPSort will sort the default key ring PUBRING.PGP according to the user IDs.
PGPSort is freeware. To download PGPSORT.ZIP now, click here.